#ifndef __CStringReader_H__
#define __CStringReader_H__


#include <lampe/stream/IStringReader.h>


namespace lampe{
namespace stream{


class CStringReader:public IStringReader{
private:
    u32 pos;
    String data;
public:
    virtual u32 read(void* buffer, u32 size);
    void position(u32 position);
    virtual u32 size();
    virtual u32 position();
    virtual bool eof();

    CStringReader(String text="");
    ~CStringReader();
};


}//namespace stream
}//namespace lampe
#endif
